﻿using System;
using System.Reflection;
using CompactMapper.Orm.Extensions;

namespace CompactMapper.Orm.UnitOfWork.Mappings.Meta.PropertyInfos.Columns
{
    internal class DateTimeColumn : Column
    {
        private const String SqlDate = "datetime";
        private readonly String _sqlType;

        public DateTimeColumn(PropertyInfo propertyInfo)
            : base(propertyInfo)
        {
            _sqlType = SqlDate.ToSqlColumn();
        }

        public override string SqlType
        {
            get { return _sqlType; }
        }
    }
}